package com.yungu.swift.assets.passenger.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.assets.passenger.dao.PassengerLogMapper;
import com.yungu.swift.assets.passenger.model.dto.PassengerLogDto;
import com.yungu.swift.assets.passenger.service.PassengerLogService;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;


/**
 * PassengerLogServiceImpl
 **/

@Service
public class PassengerLogServiceImpl extends BaseServiceImpl<PassengerLogDto> implements PassengerLogService {

    @Autowired
    private PassengerLogMapper passengerLogMapper;

    @Override
    protected IMapper<PassengerLogDto> getMapper() {
        return passengerLogMapper;
    }

    @Override
    public ResponseData<Boolean> saveRegisterLog(Map<String, Object> regParams) {
        return ResponseData.buildSuccessResponse(passengerLogMapper.saveRegisterLog(regParams) > 0);
    }
}